<template>
  <a-button v-bind="$attrs">
    <template v-if="icon" #icon>
      <s-icon :type="icon" />
    </template>
    <slot></slot>
  </a-button>
</template>
<script>
export default {
  // 继承
  name: 'SButton',
  props: {
    icon: {
      required: false
    }
  }
}
</script>
